#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20250523.sql ./mysql/db
cp ../sql/ry_config_20250224.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../share-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy share-gateway "
cp ../share-gateway/target/share-gateway.jar ./ruoyi/gateway/jar

echo "begin copy share-auth "
cp ../share-auth/target/share-auth.jar ./ruoyi/auth/jar

echo "begin copy share-visual "
cp ../share-visual/share-monitor/target/share-visual-monitor.jar  ./ruoyi/visual/monitor/jar

echo "begin copy share-modules-system "
cp ../share-modules/share-system/target/share-modules-system.jar ./ruoyi/modules/system/jar

echo "begin copy share-modules-file "
cp ../share-modules/share-file/target/share-modules-file.jar ./ruoyi/modules/file/jar

echo "begin copy share-modules-job "
cp ../share-modules/share-job/target/share-modules-job.jar ./ruoyi/modules/job/jar

echo "begin copy share-modules-gen "
cp ../share-modules/share-gen/target/share-modules-gen.jar ./ruoyi/modules/gen/jar

